package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单下的产品信息表
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsOrderGoods对象", description="订单下的产品信息表")
public class ZsOrderGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单下的产品信息表主键")
    @TableId(value = "og_id", type = IdType.AUTO)
    private Integer ogId;

    @ApiModelProperty(value = "订单编号")
    private Integer oId;

    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    @ApiModelProperty(value = "商品类型ID")
    private Integer gtId;

    @ApiModelProperty(value = "商品名称缓存")
    private String goodsTitle;

    @ApiModelProperty(value = "商品图片缓存")
    private String goodsImg;

    @ApiModelProperty(value = "goods_audio_id 音频产品的ID")
    private Integer gaId;

    @ApiModelProperty(value = "音频商品缓存的文件路径")
    private String audioUrl;

    @ApiModelProperty(value = "原始单价")
    private Integer oriPrice;

    @ApiModelProperty(value = "商品最终成交单价")
    private Integer unitPrice;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "总价")
    private Integer totalPrice;

    @ApiModelProperty(value = "拼团辅助表主键，记录团号等相关信息关联")
    private Integer gtrgId;


}
